package com.xiaoge.demo.vo;

import java.math.BigInteger;

import lombok.Data;

/**
 * 作者：guoyzh
 * 时间：2018/12/27 16:43
 * 功能：创建dto之获取user表中的部分字段
 */
@Data
public class UserAddressVo2 {

    private String uid;
    private BigInteger aid;
    private String name;
    private String address;
    private String door;

    /**
     * 必须要有构造方法才可以被映射为bean 而且jpa对应的实体类必须有默认值 且默认值不能为null
     *
     * @param uid
     * @param name
     * @param aid
     * @param address
     * @param door
     */
    public UserAddressVo2(String uid, String name, BigInteger aid, String address, String door) {
        this.aid = aid;
        this.name = name;
        this.uid = uid;
        this.address = address;
        this.door = door;
    }
}